{extends 'base/site2.html'}
{block name="page_header"}{include file="common/header.html" inline}{/block}
{block name="page_nav"}{include file="common/slide-nav.html" inline}{/block}
{block name="page_styles"}
    <link rel="stylesheet" type="text/css" href="/css/common/daterangepicker-bs3.css" />
    <link rel="stylesheet" type="text/css" href="/css/mediation/caseallocate/index.css" />
<style>
.modal.in .modal-dialog{
    transform: translate(0,50%)!important;
}
</style>
{/block}
{block name="page_section"}
<div class="clearfix">
	<div class="sessionPage">
        <div class="page-header">
          <div class="left">
            <span class="line"></span>
            <strong class="tit">批次详情</strong>
          </div>
        </div>
        <form class="small-style" method="get" action="" role="validform" enctype="multipart/form-data">
          <div class="form_row">
            <input type="hidden" name="limit" value="{if $query.limit}{$query.limit}{/if}">
            <div class="form-group col-lg-3 ui-select">
                <label for="exampleInputName2"  class="col-sm-4 control-label">批次状态:</label>
                <div class="col-sm-7">
                    <select class="form-control selectpicker"    title="请选择" name="repairStatus" id="repairStatus">
                        {foreach from=$repairStatus key=key   item=info}
                        <option class="u144_input_option" {if !empty($query.repairStatus) &&  $key == $query.repairStatus}selected="selected"{/if} value="{$key}">{$info}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group col-lg-3 ui-select">
                <label for="exampleInputName2"  class="col-sm-4 control-label">修复姓名:</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control noempty col-sm-4"  value="{if !empty($query.repairName)}{$query.repairName}{/if}" name="repairName" id="repairName" placeholder="请输入~">
                </div>
            </div>
            <div class="form-group col-lg-3 ui-select">
                <label for="exampleInputName2"  class="col-sm-4 control-label">修复身份证:</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control noempty col-sm-4"  value="{if !empty($query.idCard)}{$query.idCard}{/if}" name="idCard" id="idCard" placeholder="请输入~">
                </div>
                <input type="hidden" value="{if !empty($query.batchId)}{$query.batchId}{/if}" name="batchId">

            </div>
            <div class="form-group col-lg-3 ui-select">
                <div class="col-lg-4">
                    <button class="btn btn-primary col-lg-8 shousuoBtn "><span class="nav-icon glyphicon glyphicon-search" aria-hidden="true" style="margin-right: 2px"></span>查询</button>
                </div>
                <div class="col-lg-4">
                    <a type="button" href="/repairbatch/batchDetail?batchId={$query.batchId}" class="btn btn-default col-lg-8 "><span class="nav-icon glyphicon glyphicon-refresh" aria-hidden="true" style="margin-right: 2px"></span>重置</a>
                </div>
            </div>
          </div>
        </form>
        <div style="width: 95%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        overflow-x: scroll;">
            <table class=" table table-striped table-bordered table-hover text-nowrap" id="tab">
                <thead>
                    <tr>
                        <th>批次id</th>
                        <th>运营商</th>
                        <th>批次状态</th>
                        <th>修复姓名</th>
                        <th>修复身份证号码</th>
                        <th>提交时间</th>
                        <th>完成时间</th>

                </thead>
                <tbody>
                    {foreach from=$arrList item=item name=foo}
                    <tr>
                        <td>{if empty($item.batchId)}--{else}{$item.batchId}{/if}</td>
                        <td>{if $item.repairType == 1}移动{else}联通{/if}</td>
                        <td>{$repairStatus[$item.repairStatus]}</td>
                        <td>{$item.repairName}</td>
                        <td>{substr($item['idCard'] , 0 , 5)}******{substr($item['idCard'] , -4)}</td>
                        <td>{if empty($item.creatTime)}--{else}{$item.creatTime|date_format:"%Y-%m-%d %H:%M:%S"}{/if}</td>
                        <td>{if empty($item.repairTime)}--{else}{$item.repairTime|date_format:"%Y-%m-%d %H:%M:%S"}{/if}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
        </div>
        <input type="hidden" value="" id="allocate_type">
        <input type="hidden" value="" id="allocate_ids">

        <div class="clearfix pad-no text-nowrap" style="margin-top: 20px;">
            {include file="base/pagenav.html"  action="/repairbatch/batchDetail" pagenum=$curPageNum inline}
            <select class="form-control" id="paglimit" style="float:right;margin:0 10px;width: auto;margin-top: -5px;">
                <option value="limit=10" {if $query.limit==10}selected="selected"{/if}>10条/页</option>
                <option value="limit=20" {if $query.limit==20}selected="selected"{/if}>20条/页</option>
                <option value="limit=50" {if $query.limit==50}selected="selected"{/if}>50条/页</option>
                <option value="limit=100" {if $query.limit==100}selected="selected"{/if}>100条/页</option>
            </select>
            <span style="float:right;">共 {$totalnum} 条</span>
        </div>
    </div>

{/block}
